package model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the departpassenger database table.
 * 
 */
@Entity
@Table(name = "departpassenger")
@NamedQuery(name = "Departpassenger.findAll", query = "SELECT d FROM Departpassenger d")
public class Departpassenger implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8364166584508986435L;

	@Id
	public Long id;

	public Long hashid;

	@Temporal(TemporalType.TIMESTAMP)
	public Date createtime;

	@Temporal(TemporalType.DATE)
	public Date departdate;

	public Integer isoriginator;

	public Double moneysellbyotherstation;

	public Double moneysellbyotherway;

	public Double moneysellbystation;

	public Double moneysellbywebsite;

	public Integer numsellbyotherstation;

	public Integer numsellbyotherway;

	public Integer numsellbystation;

	public Integer numsellbywebsite;

	public String schedulecode;

	@Temporal(TemporalType.TIMESTAMP)
	public Date updatetime;

	public String vehicleno;

	public Integer rundistance;

	public String reachstationname;

	public String reachstationcode;

	public String orgcode;

	public Double stationcharge; // 站务费

	public Integer insurancecount; // 保险票数

	public Double insuranceamount; // 保险票金额

	public Departpassenger() {
	}

	public Departpassenger(Long id, Long hashid, Date createtime, Date departdate, Integer isoriginator, Double moneysellbyotherstation, Double moneysellbyotherway, Double moneysellbystation, Double moneysellbywebsite, Integer numsellbyotherstation, Integer numsellbyotherway, Integer numsellbystation, Integer numsellbywebsite, String schedulecode, Date updatetime, String vehicleno, Integer rundistance, Double stationcharge, Integer insurancecount, Double insuranceamount) {
		super();
		this.id = id;
		this.hashid = hashid;
		this.createtime = createtime;
		this.departdate = departdate;
		this.isoriginator = isoriginator;
		this.moneysellbyotherstation = moneysellbyotherstation;
		this.moneysellbyotherway = moneysellbyotherway;
		this.moneysellbystation = moneysellbystation;
		this.moneysellbywebsite = moneysellbywebsite;
		this.numsellbyotherstation = numsellbyotherstation;
		this.numsellbyotherway = numsellbyotherway;
		this.numsellbystation = numsellbystation;
		this.numsellbywebsite = numsellbywebsite;
		this.schedulecode = schedulecode;
		this.updatetime = updatetime;
		this.vehicleno = vehicleno;
		this.rundistance = rundistance;
		this.stationcharge = stationcharge;
		this.insurancecount = insurancecount;
		this.insuranceamount = insuranceamount;
	}

	public Departpassenger(Long id, Long hashid, Date createtime, Date departdate, Integer isoriginator, Double moneysellbyotherstation, Double moneysellbyotherway, Double moneysellbystation, Double moneysellbywebsite, Integer numsellbyotherstation, Integer numsellbyotherway, Integer numsellbystation, Integer numsellbywebsite, String schedulecode, Date updatetime, String vehicleno, Integer rundistance, String orgcode, String reachstationcode, String reachstationname, Double stationcharge, Integer insurancecount, Double insuranceamount) {
		super();
		this.id = id;
		this.hashid = hashid;
		this.createtime = createtime;
		this.departdate = departdate;
		this.isoriginator = isoriginator;
		this.moneysellbyotherstation = moneysellbyotherstation;
		this.moneysellbyotherway = moneysellbyotherway;
		this.moneysellbystation = moneysellbystation;
		this.moneysellbywebsite = moneysellbywebsite;
		this.numsellbyotherstation = numsellbyotherstation;
		this.numsellbyotherway = numsellbyotherway;
		this.numsellbystation = numsellbystation;
		this.numsellbywebsite = numsellbywebsite;
		this.schedulecode = schedulecode;
		this.updatetime = updatetime;
		this.vehicleno = vehicleno;
		this.rundistance = rundistance;
		this.orgcode = orgcode;
		this.reachstationcode = reachstationcode;
		this.reachstationname = reachstationname;
		this.stationcharge = stationcharge;
		this.insurancecount = insurancecount;
		this.insuranceamount = insuranceamount;
	}

}